﻿@model KCMS.BusinessLogic.Models.Picture

@*    var imagePath = "";
    if (Model != null)
    {
        imagePath = Url.Action("Show", "Picture", new { area = "", id = Model.Id });
    }
    else
    {
        if (Request["imageFile"] != null)
        {
            imagePath = @"images\" + Request["photoChoice"];
        }
      *@    
    <legend>Picture</legend>
    @if (Model != null)
    {
        <div>
            <img src="@Url.Action("Show", "Picture", new { area = "", id = Model.Id });">
        </div>
    }
    <div>
        <input type="file" id="imageFile" name="imageFile" />
    </div>
<div class="display-field">
    @Html.DisplayFor(model => model.Title)
</div>
